package wh.products;

import wh.exceptions.BadIDFormat;
import wh.exceptions.IDCollisionException;
import wh.exceptions.InvalidValueException;

public class SAS extends StorageDisk // Serial attached SCSI disk
{
	
	private int rotationSpeed; // Property for mechanical drives
	private int bufferSize; // More relevant property for HDDs
	
	public SAS(String productID, double price, int inStock, String subType, String manufacturer, String series,
			String productName, int capacity, String busInterface, int mtbf, int rotationSpeed, int bufferSize) throws BadIDFormat, 
			IDCollisionException, InvalidValueException 
	{
		super(productID, price, inStock, subType, manufacturer, series, productName, capacity, busInterface, mtbf);
		
		this.rotationSpeed = rotationSpeed;
		this.bufferSize = bufferSize;
	}
	
	public int getRotationSpeed() {
		return rotationSpeed;
	}
	
	public int getBufferSize() {
		return bufferSize;
	}

}
